package com.example.dairenkun.neufoodshop.service;

import com.example.dairenkun.neufoodshop.bean.Collection;
import com.example.dairenkun.neufoodshop.bean.User;
import com.example.dairenkun.neufoodshop.bean.doCollect;
import com.example.dairenkun.neufoodshop.bean.isCollected;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/4/10.
 */

public interface CollectionService {
    //显示收藏列表
    @GET("getAllUserCollection.do")
    Call<List<Collection>> getCollectionList(
            @Query("user_id")int userid,
            @Query("flag")int flag

    );
    //取消店铺收藏
    @GET("userCollectShop.do")
    Call<doCollect> doCollectShop(

            @Query("shop_id")int shopid,
            @Query("user_id")int userid
    );
    //取消菜品收藏
    @GET("userCollectFood.do")
    Call<doCollect>doCollectFood(

            @Query("food_id")int foodid,
            @Query("user_id")int userid
    );

    //判断是否收藏
    @GET("isCollected.do")
    Call<isCollected> isCollection(
            @Query("user_id")int userid,
            @Query("shop_food_id")int shop_food_id,
            @Query("flag")int flag
    );
}
